package com.apes.fn.business.insurance.modle;

import com.apes.framework.jpa.BaseModel;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * @ClassName : PolicyInformationException
 * @Description : 记录生成保单信息的错误信息
 * @Author : WSJ
 * @Date: 2020-05-05 16:24
 */
@Getter
@Setter
@Entity
@EntityListeners(DefaultPersistListener.class)
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Table(name = PolicyInformationException.CONST_TABLE_NAME)
public class PolicyInformationException extends BaseModel {
    public static final String  CONST_TABLE_NAME = "policy_information_exception";

    @Id
    @Column(name = "id", nullable = false ,length = 64)
    @Comment("保单号")
    private String  id;

    @Column(name = "error", length = 2048)
    @Comment("错误信息")
    private String error;

}
